package main

import "fmt"

func main() {
	
	var hens [6]float64;
	hens[0] = 3.0
	hens[1] = 5.0
	hens[2] = 1.0
	hens[3] = 3.4
	hens[4] = 2.0
	hens[5] = 50.0

	var sum float64

	for i := 0; i < len(hens); i++ {
		sum += hens[i]
	}

	fmt.Printf("总体重是：%.2f，平均体重是：%.2f\n", sum, sum / float64(len(hens)))
}